<template>
  <div class="list_menu diy_menu">
    <router-link
            to="/user_center/index"
            class="menu_item"
            :class="{ selected: this.$route.path=== '/user_center/index'}"
     >
      <span class="left_span">个人首页</span>
      <span class="right_span"><b-icon icon="house-fill"></b-icon></span>
    </router-link>
          <router-link
          to="/teacher_users/table"
          class="menu_item"
          :class="{ selected: this.$route.path=== '/teacher_users/table'}"
          v-if="$check_action('/teacher_users/table','get')">
        <span class="left_span">教师用户</span>
        <span class="right_span"><b-icon icon="house-fill"></b-icon></span>
      </router-link>
              <router-link
          to="/student_users/table"
          class="menu_item"
          :class="{ selected: this.$route.path=== '/student_users/table'}"
          v-if="$check_action('/student_users/table','get')">
        <span class="left_span">学生用户</span>
        <span class="right_span"><b-icon icon="house-fill"></b-icon></span>
      </router-link>
              <router-link
          to="/fraud_classification/table"
          class="menu_item"
          :class="{ selected: this.$route.path=== '/fraud_classification/table'}"
          v-if="$check_action('/fraud_classification/table','get')">
        <span class="left_span">诈骗分类</span>
        <span class="right_span"><b-icon icon="house-fill"></b-icon></span>
      </router-link>
              <router-link
          to="/fraud_knowledge/table"
          class="menu_item"
          :class="{ selected: this.$route.path=== '/fraud_knowledge/table'}"
          v-if="$check_action('/fraud_knowledge/table','get')">
        <span class="left_span">诈骗知识</span>
        <span class="right_span"><b-icon icon="house-fill"></b-icon></span>
      </router-link>
              <router-link
          to="/fraud_case/table"
          class="menu_item"
          :class="{ selected: this.$route.path=== '/fraud_case/table'}"
          v-if="$check_action('/fraud_case/table','get')">
        <span class="left_span">诈骗案例</span>
        <span class="right_span"><b-icon icon="house-fill"></b-icon></span>
      </router-link>
              <router-link
          to="/publicity_and_education/table"
          class="menu_item"
          :class="{ selected: this.$route.path=== '/publicity_and_education/table'}"
          v-if="$check_action('/publicity_and_education/table','get')">
        <span class="left_span">宣传教育</span>
        <span class="right_span"><b-icon icon="house-fill"></b-icon></span>
      </router-link>
              <router-link
          to="/communication_classification/table"
          class="menu_item"
          :class="{ selected: this.$route.path=== '/communication_classification/table'}"
          v-if="$check_action('/communication_classification/table','get')">
        <span class="left_span">交流分类</span>
        <span class="right_span"><b-icon icon="house-fill"></b-icon></span>
      </router-link>
              <router-link
          to="/community_communication/table"
          class="menu_item"
          :class="{ selected: this.$route.path=== '/community_communication/table'}"
          v-if="$check_action('/community_communication/table','get')">
        <span class="left_span">社区交流</span>
        <span class="right_span"><b-icon icon="house-fill"></b-icon></span>
      </router-link>
              <router-link
          to="/report_information/table"
          class="menu_item"
          :class="{ selected: this.$route.path=== '/report_information/table'}"
          v-if="$check_action('/report_information/table','get')">
        <span class="left_span">举报信息</span>
        <span class="right_span"><b-icon icon="house-fill"></b-icon></span>
      </router-link>
          <router-link
              to="/exam/table"
              class="menu_item"
              :class="{ selected: this.$route.path=== '/exam/table'}"
              v-if="$check_action('/exam/table','get')">
        <span class="left_span">{{$page_title("/exam/table") || "在线测试"}}</span>
        <span class="right_span"><b-icon icon="house-fill"></b-icon></span>
      </router-link>
  <router-link
              to="/user/collect"
              class="menu_item"
              :class="{ selected: this.$route.path=== '/user/collect'}"
              v-if="$check_action('/collect/list','get')">
        <span class="left_span">收藏</span>
        <span class="right_span"><b-icon icon="house-fill"></b-icon></span>
  </router-link>
	<router-link
	            to="/comment/table"
	            class="menu_item"
	            :class="{ selected: this.$route.path=== '/comment/table'}"
	            v-if="$check_action('/comment/table','get')">
	      <span class="left_span">评论管理</span>
	      <span class="right_span"><b-icon icon="house-fill"></b-icon></span>
	</router-link>
  </div>
</template>

<script>
import mixin from "@/mixins/page.js";
export default {
  mixins: [mixin],
  data() {
    return {
    };
  },
  mounted() {
  },
  methods: {
  },

  components: {
  },
};
</script>

<style scoped>
.list_menu {
  flex: 0 0 25%;
  border-bottom: 1px solid #eee;
}
.menu_item {
  display: flex;
  justify-content: space-between;
  padding: 15px 20px;
  border: 1px solid #eee;
  border-bottom: none;
  background-color: #fff;
}
.menu_item.selected {
  background-color: #000;
}
.menu_item.selected span {
  color: #fff ;
}
.content {
  flex: 0 0 74%;
}
</style>
